package com.rent.auth.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @Author zhang
 * @create 2022/9/7 16:24
 */
@ApiModel(value = "登录表单信息")
@Data
public class LoginForm implements Serializable {

    @ApiModelProperty(value = "用户名", required = true)
    @NotBlank(message = "用户名不为空")
    private String username;

    @ApiModelProperty(value = "密码", required = true)
    @NotBlank(message = "密码不为空")
    private String password;

    @ApiModelProperty(value = "组织代码", required = true)
    @NotBlank(message = "组织代码不为空")
    private String tenantCode;

    @ApiModelProperty(value = "验证码")
    @NotBlank(message = "验证码不为空")
    private String verifyCode;

}
